﻿/*
 * Jonathan.Tests
 * Created by: Jonathan Montiverdi
 * Date: 6/13/2012
 * License: http://jonathan.codeplex.com/license
 */
using System;
using Jonathan.Data;
using Jonathan.Logic;
using Monti.Docking;

namespace Jonathan.Tests.Logic
{
   /// <summary>
   /// A mock representation of the IMain interface.
   /// </summary>
   public class MainMock : IMain
   {
      /// <summary>
      /// Occurs when the dock manager is disposing.
      /// </summary>
      public event EventHandler Disposing;
      
      /// <summary>
      /// Creates a new reader with the given book.
      /// </summary>
      /// <param name="book">Book to read.</param>
      public void CreateNewReader (Book book)
      {
         
      }
      
      /// <summary>
      /// Shows the book manager.
      /// </summary>
      public void ShowLibrary ()
      {
         
      }
      
      /// <summary>
      /// Shows a definition.
      /// </summary>
      /// <param name="word">Word we are trying to define.</param>
      public void ShowDefinition (string word)
      {
         
      }
      
      /// <summary>
      /// Disposes the object.
      /// </summary>
      public void Dispose ()
      {
         if (this.Disposing != null)
            this.Disposing (this, new EventArgs ());
      }
   }
}
